from flask_restful import fields  # type: ignore

from libs.helper import GenderField, TimestampField
menu_fields={
    "id": fields.String,
    "parent_id": fields.String,
    "name": fields.String,
    "url": fields.String,
    "perms": fields.String,
    "menu_type": fields.String,
    "icon": fields.String,
    "component": fields.String,
    "seq": fields.Integer,
    "is_inner": fields.Boolean,
}
menu_list_fields = {
    "total": fields.Integer,
    "has_more": fields.Boolean,
    "data": fields.List(fields.Nested(menu_fields))
}